package com.alumni_circle.core.entity.rbac.response;

import lombok.Data;

import java.io.Serializable;

/**
 * @author 龙小虬
 * @since 2020-08-05 18:32
 */
@Data
public class PermissionsModel implements Serializable {
//    private String roleId="admin";
//    private String permissionId="dashboard";
    private String permissionId;
//    private String permissionName="仪表盘";
//    private ActionModel[] actions;
    // 用于控制用户在此页面的增删改查权限
    private ActionModel[] actionEntitySet;

//    public PermissionsModel(String permissionId,ActionsModel[] actions,ActionEntitySetModel[] actionEntitySet){
//        this.permissionId = permissionId;
//        this.actionEntitySet = actionEntitySet;
//        this.actions = actions;
//    }
    public PermissionsModel(String permissionId,ActionModel[] actionEntitySet){
        this.permissionId = permissionId;
        this.actionEntitySet = actionEntitySet;
    }
}
